package ywxt.tool.stool.service

import reactor.core.publisher.Flux
import reactor.core.publisher.Mono
import ywxt.tool.stool.model.PoemModel
import ywxt.tool.stool.model.PoetModel

interface PoemService {

    /**
     * 获取诗
     */
    fun getPoem(id:String):Mono<PoemModel>

    fun getPoemsByDynasty(dynasty:String):Flux<PoemModel>

    fun getPoemsByPoet(poetId:String):Flux<PoemModel>

    fun getPoemsByName(name:String):Flux<PoemModel>

    /**
     * 获取诗人
     */
    fun getPoet(id:String):Mono<PoetModel>

    fun getPoetsByName(name: String):Flux<PoetModel>
}